package gui

import (
	"github.com/gdamore/tcell/v2"
	"github.com/rivo/tview"
)

type PtkForm struct {
	*tview.Form
	Title string
}

func NewPtkForm(title string) *PtkForm {
	t := tview.NewForm()
	t.SetTitle(title).SetBorder(true).
		SetBorderColor(tcell.ColorGreenYellow)
	t.SetButtonBackgroundColor(tcell.ColorDarkCyan).
		SetButtonTextColor(tcell.ColorWhite)
	return &PtkForm{
		Form:  t,
		Title: title,
	}
}
